package com.atguigu.common.exception;

/**
 * @author : Admin
 * @addTime : 14:31
 */
public enum BizCodeEnum {

    UNKNOWN_EXCEPTION(10000,"未知系统异常"),

    VALID_EXCEPTION(10001,"数据校验异常");

    private int code;

    private String msg;

    BizCodeEnum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
